package question2;

public abstract class Hero {
    private String name;
    private int HP;
    private int MP;
    private int atk;
    private int defence;

    public Hero() {
    }

    public Hero(String name, int HP, int MP, int atk, int defence) {
        this.name = name;
        this.HP = HP;
        this.MP = MP;
        this.atk = atk;
        this.defence = defence;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getHP() {
        return HP;
    }

    public void setHP(int HP) {
        this.HP = HP;
    }

    public int getMP() {
        return MP;
    }

    public void setMP(int MP) {
        this.MP = MP;
    }

    public int getAtk() {
        return atk;
    }

    public void setAtk(int atk) {
        this.atk = atk;
    }

    public int getDefence() {
        return defence;
    }

    public void setDefence(int defence) {
        this.defence = defence;
    }
    public abstract void skill1();
    public abstract void skill2();
    public abstract void skill3();
    public abstract void speak();
    public  void attack(){
        System.out.println("平A");
        this.MP+=10;
    }
    public abstract void playStyle();
}
